//用户信息组件
import { Component,OnInit,Input,Output,EventEmitter } from '@angular/core';

@Component({
  selector: 'user',
  templateUrl: './user.component.html',
  styleUrls: ['./user.component.css']
})
export class UserComponent {

    title = 'app';
    ngOnInit(){
    }

    protrait_src = "../../../../wxassets/twoyear/assets/images/protrait.jpg";
    @Input() username = "用户昵称";
    @Input() phone = "18800000000";
    getPhoneNum(){
        return this.phone.substring(0,3) + "****"+ this.phone.substring(7,11);
    }
    getInhabitantNum(){
        return this.phone.substring(7,11);
    }
}
